<template>
    <div class="login" id="login">
        <div class="entry">
            <div class="title">

            </div>
            <div class="btn" @click="toLogin">
                立即登录
            </div>
        </div>
    </div>
</template>
<script>
    import local from "../util/local"
    export default{
        name: 'login',
        methods: {
            toLogin(){
                this.$router.push("/accountLogin/generalLogin")
            }
        },
        created(){
            if (local.get('username') && local.get('must_update_role')=='1') {
                this.$router.push("/order")
            }
        }
    }
</script>
